package com.yb.xczx.cloud.system.controller;

import com.yb.core.model.XczxResult;
import com.yb.xczx.cloud.system.service.IRabbitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/9 14:49
 * FileName: RabbitMQController
 * Description:
 */

@RestController
@Slf4j
@RequestMapping("rabbit")
public class RabbitMQController {

    @Autowired
    IRabbitService rabbitService;

    @GetMapping("/send")
    public XczxResult send(String msg){
        return rabbitService.send(msg);
    }
}
